from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import users
from view import baseview
from presenter import documentcategorypresenter

class DocumentCategoryView(baseview.BaseView):
  def get(self):
    self.templatefile = "templates/documentcategory.html"
    presenter = documentcategorypresenter.DocumentCategoryPresenter(request=self.request, currentuser=users.get_current_user(), view=self)
    presenter.respondToGet()

application = webapp.WSGIApplication(
                                     [('/documentcategory', DocumentCategoryView)],
                                     debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()